/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.paypal;

import static com.opensymphony.xwork2.Action.SUCCESS;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

/**
 *
 * @author Thai Ha Cong
 */
@Namespace("/")
public class PaymentAction extends ActionSupport {
    
    @Action(value = "paymentComplete", results = {
        @Result(name = "success", location = "/processOrderSuccess.jsp")
    })
    public String paymentComplete() {
        addActionMessage("You've complete your payment with Paypal.");
        return SUCCESS;
    }
    
    @Action(value = "confirmExpressCheckout", results = {
        @Result(name = "success", location = "/confirmEC.jsp")
    })
    public String confirmExpressCheckout() {
        addActionMessage("");
        
        return SUCCESS;
    }
}
